using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using THSERP.BusinessEntities;
using THSERP.BaseProvider;
namespace THSERP.Modules.DataExchange
{
    public partial class BRPostingHistorysGridControl : THSGridControl
    {
        public override void InitGridControlDataSource()
        {
            DataExchangeEntities entity = (DataExchangeEntities)((BaseModuleERP)Screen.Module).CurrentModuleEntity;
            this.DataSource = entity.BRPostingHistoryList;
        }

        protected override DevExpress.XtraGrid.Views.Grid.GridView InitializeGridView()
        {
            DevExpress.XtraGrid.Views.Grid.GridView gridView = base.InitializeGridView();
            gridView.SortInfo.Add(new DevExpress.XtraGrid.Columns.GridColumnSortInfo(gridView.Columns["BRPostingHistoryDate"], DevExpress.Data.ColumnSortOrder.Descending));
            return gridView;
        }
    }
}
